package com.dongwu.manager.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import com.dongwu.common.entity.BaseEntity;

/**
 * <pre>
 * 
 * =============================================================================
 * 日期：yyyyMMdd  担当:
 * 内容:
 * =============================================================================
 * </pre>
 * 
 * @author zhanghui
 */
@Entity
public class AppVersion extends BaseEntity<String> {

	/**
	 * 编号
	 */
	private Integer vcode;

	/**
	 * 版本
	 */
	private String vname;

	/**
	 * 1-ios 2-android
	 */
	private Byte appType;

	/**
	 * 是否强制更新
	 */
	private Byte isForced;

	/**
	 * 下载地址
	 */
	private String downUrl;

	/**
	 * 更新文档
	 */
	@Column(columnDefinition = "Text")
	private String updateDoc;
	/**
	 * 大小
	 */
	private String size;

	/**
	 * (0表示横屏，1表示竖屏，2表示售前app)
	 */
	private Integer deviceType;

	public Byte getAppType() {
		return appType;
	}
	
	public String getDownUrl() {

		return downUrl;
	}

	public String getSize() {
		return size;
	}

	public Integer getVcode() {
		return vcode;
	}

	public String getVname() {
		return vname;
	}

	public void setAppType(Byte appType) {
		this.appType = appType;
	}

	/**
	 * <pre>
	 * 下载地址
	 * </pre>
	 * 
	 * @param downUrl
	 *            the downUrl to set
	 */
	public void setDownUrl(String downUrl) {

		this.downUrl = downUrl;
	}

	public Byte getIsForced() {
		return isForced;
	}

	public void setIsForced(Byte isForced) {
		this.isForced = isForced;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public void setVcode(Integer vcode) {
		this.vcode = vcode;
	}

	public void setVname(String vname) {
		this.vname = vname;
	}

	public String getUpdateDoc() {
		return updateDoc;
	}

	public void setUpdateDoc(String updateDoc) {
		this.updateDoc = updateDoc;
	}

	public Integer getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(Integer deviceType) {
		this.deviceType = deviceType;
	}

}
